#pragma once
#include "GridBaseItem.h"
class CGridRow
{
	friend class CGridBaseItem;
	friend class CManGrid;
	friend class CGridListCtrl;
	friend class CGridListDraw;
public:
	BOOL		AddSubRow(CGridRow *pSubRow);
	BOOL		DelSubRow(int nSubIndex);
	CGridRow*	GetSubRow(int nSubIndex);
	
	CGridBaseItem* GetItem(int nIndex);
	BOOL		ReplaceItem(int nCount,CGridBaseItem *pNewItem,BOOL bRedraw=FALSE);
private:
	CGridRow(CGridListDraw *pGridDarw,int nCount);
	virtual ~CGridRow(void);
private: 
	//
	vector<CGridRow*>	vChildRow;
	CRect				XXRc;
	CRect				m_AllRect;
	BOOL				m_blExpand;
	CGridListDraw		*m_pGridListDarw;
	CGridRow			*m_AttachRow;

	vector<CGridBaseItem*> m_ItemS;
};
